public class Main {

	public static void main(String[] args) {
		List test = new List();
		test.insert(new Node(1), 0); // first element
		test.print();
		test.insert(new Node(4), 1); // last element
		test.print();
		test.insert(new Node(69), 0);
		test.print();
		test.insert(new Node(5), 3); // middle
		test.print();
		test.insert(new Node(7), 0);
		test.print();
		test.insert(new Node(4), 0);
		test.print();
		test.insert(new Node(99), 4); // middle
		test.print();
		test.insert(new Node(77), 7); // end
		test.print();
		test.insert(new Node(15), 0);
		test.print();
		test.insert(new Node(18), 0);
		
		test.print();
		System.out.println("5 ist an der STelle: " + test.search(new Node(5)));
		System.out.println("Removing last element:");
		test.remove(test.getLengthList()-1); // Removing end.
		test.print();
		
		System.out.println("Removing middle (3):");
		test.remove(3); // Removing middle.
		test.print();
		
		System.out.println("Removing first element:");
		test.remove(0);
		test.print();
		
		System.out.println("Serarch 4");
		System.out.println(test.search(new Node(4)));
		
		
		System.out.println("Serarch 6");
		System.out.println(test.search(new Node(6)));
		
		System.out.println("Serarch 99");
		System.out.println(test.search(new Node(99)));
			
		System.out.println("Insert 1700 an stelle 4");
		test.insert(new Node(1700), 4);
		test.print();
	}

}
